<?php

namespace project\common;


/**
 * Class RuntimeLog
 * @package lib\tools\logs
 */
class LogXhprofRuntime extends LogRuntime
{


    public static function filename(): string
    {
        $dir = $_SERVER['APP_NAME'] ?? 'common';
        $file = implode('-', [date("Ymd"), uniqid()]);
        return LOGS_ROOT . 'xhprof' . DIRECTORY_SEPARATOR . $dir . DIRECTORY_SEPARATOR . $file . '.xhprof';
    }


}